<?php

namespace App\Http\Controllers\Web;

use App\Http\Controllers\Controller;
use App\Http\Controllers\Web\BaseController;
use Illuminate\Support\Facades\Log;

class TestController extends BaseController
{
    /**
     * 例子
     * 带验证的接口
     * @return bool|\Illuminate\Http\JsonResponse|mixed
     */
    public function test(){
        $rules  = [
            'url'      => 'required',
        ];

        $message = [
            'url.required'      => 'url必填',
        ];

        if ($error = $this->validateMsg($rules, $message)) {
            return $error;
        }
        return self::doResponseReturn('11111');
    }
}
